package com.wn.sk.order.core.service;

import com.wn.common.api.order.dto.OrderDto;
import com.wn.common.api.order.vo.OrderVo;
import com.wn.sk.order.core.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author yellow
 * @since 2022-09-08
 */
public interface IOrderService extends IService<Order> {

    /**
     * 创建订单
     * @param dto
     * @return
     */
    String createOrder(OrderDto dto);

    /**
     * 查询订单
     * @param orderSn
     * @return
     */
    OrderVo findByOrderSn(String orderSn);

    /**
     * 更新 操作
     * @param orderSn
     * @return
     */
    Integer updateByOrderSn(String orderSn);
}
